<template>
  <div class="detail-box">
    <van-nav-bar
      title="商品详情"
    />
    <van-swipe :autoplay="3000">
      <van-swipe-item v-for="(image, index) in images" :key="index">
        <img v-lazy="image" class="swipe-img" />
      </van-swipe-item>
    </van-swipe>
    <div class="content">
      <p>法国碧欧泉法国碧欧泉法国碧欧泉法国碧欧泉法国碧欧泉法国碧欧泉法国碧欧泉法国碧欧泉</p>
    </div>
  </div>
</template>

<script>
import { Button, Cell, NavBar, Swipe, SwipeItem } from 'vant';
export default {
  components: {
    [Button.name]: Button,
    [Cell.name]: Cell,
    [NavBar.name]: NavBar,
    [Swipe.name]: Swipe,
    [SwipeItem.name]: SwipeItem,
  },
  data () {
    return {
      images: [
        'https://img.yzcdn.cn/2.jpg',
        'https://img.yzcdn.cn/2.jpg'
      ]
    }
  },
  mounted() {

  },
  methods: {
  },
}
</script>

<style scoped>
.swipe-img {
  width: 100%;
}
.content {
  padding: 10px;
}
</style>
